
package org.apache.solr.schema;

import java.util.Map;

/**
 * Abstract class defining shared behavior for primitive types
 * Intended to be used as base class for non-analyzed fields like
 * int, float, string, date etc, and set proper defaults for them 
 */
public abstract class PrimitiveFieldType extends FieldType {

    @Override
    protected void init(IndexSchema schema, Map<String, String> args) {
        super.init(schema, args);

        if (schema.getVersion() > 1.4) {
            properties |= OMIT_NORMS;
        }
    }
}
